package ltd.hanamaki.study.operator;

/**
 * 比较运算符
 * 比较运算符得到的结果是 布尔类型
 */
public class Demo02 {

    public static void main(String[] args) {

        int a = 10;
        int b = 20;

        System.out.println(a == b);
        System.out.println(a > b);
        System.out.println(a < b);
        System.out.println(a <= b);
        System.out.println(a >= b);
        System.out.println(a != b);

        /* 异或运算 */
        int i = 2;
        int c = 4;
        /*
        * 2: 0 1 0
        * 4: 1 0 0
        *
        * */
        System.out.println(i ^ c);


    }

}
